package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.service.IServeProviderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description RegisterController
 * @Author luohai
 * @Date 2024-12-02
 */
@RestController("RegisterController")
@RequestMapping("/open/serve-provider")
@Api(tags = "机构段接口 - 注册相关接口")
public class RegisterController {

    @Autowired
    private IServeProviderService serveProviderService;

    /**
     * 机构端注册功能
     * @param dto
     */
    @PostMapping("/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO dto){
        serveProviderService.register(dto);
    }
}
